home *** CD-ROM | disk | FTP | other *** search
- unit ComClass1Impl;
-
- interface
-
- uses
- Windows, ActiveX, Classes, ComObj, ComServer1_TLB, StdVcl,
- BaseLib_TLB;
-
- type
- TComClass1 = class(TTypedComObject, IFoo)
- protected
- procedure Bar; safecall;
- {Declare IComClass1 methods here}
- end;
-
- implementation
-
- uses
- ComServ, Dialogs;
-
- procedure TComClass1.Bar;
- begin
- ShowMessage('Hello from an instance of TComClass1 in ComServer1.dll')
- end;
-
- initialization
- TTypedComObjectFactory.Create(ComServer, TComClass1, Class_ComClass1,
- ciMultiInstance, tmApartment);
- end.
-